package com.hm.service.mapper.user;

import com.hm.service.entity.user.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
@Mapper
public interface UserMapper {

    //根据用户名获取用户信息
    UserBean getUserForName(HashMap<String, String> params);

    //根据用Id获取用户信息
    UserBean getUserForId(HashMap<String, Long> params);

    //获取所有用户
    List<UserBean> getAllUser();

    //根据id删除用户
    void deleteForUserId(HashMap<String, Long > params);

    //根据用户ID修改密码
    void changePasswordForUserId(HashMap<String, String> params);

    //新增用户
    void addUser(UserBean params);

}
